#include <math.h>
#include "scr_math.h"

FX32 SCRMath::SinTableA[FX32_TABLE_SIZE];
FX32 SCRMath::CosTableA[FX32_TABLE_SIZE];

void SCRMath::Initialize()
{
	for (int Idx = 0; Idx < FX32_TABLE_SIZE; ++Idx)
	{
		SinTableA[Idx] = (FX32)(sin((double)(PI * 2.0) * ((double)Idx / (double)(FX32_TABLE_SIZE))) * (double)FX32_ONE);
		CosTableA[Idx] = (FX32)(cos((double)(PI * 2.0) * ((double)Idx / (double)(FX32_TABLE_SIZE))) * (double)FX32_ONE);
	}
}
